import { DEFAULT_LAYOUT } from "../base";
import { AppRouteRecordRaw } from "../types";

const SYSTEM_MANAGEMENT: AppRouteRecordRaw = {
  path: "/system",
  name: "system",
  component: DEFAULT_LAYOUT,
  redirect: "/system/role",
  meta: {},
  children: [
    {
      path: "role",
      name: "role",
      component: () =>
        import("@/views/system-management/role-management/index.vue"),
      meta: {
        title: "角色管理"
      }
    },
    {
      path: "user",
      name: "user",
      component: () =>
        import("@/views/system-management/user-management/index.vue"),
      meta: {
        title: "用户管理"
      }
    },
    {
      path: "menu",
      name: "menu",
      component: () =>
        import("@/views/system-management/menu-management/index.vue"),
      meta: {
        title: "菜单管理"
      }
    }
  ]
};

export default SYSTEM_MANAGEMENT;
